From: Colin Walters Date: Wed, 9 Jul 2025 17:28:18 +0000 (-0400) Subject: tests: Verify soft reboot with changed kernel state X-Git-Tag: archive/raspbian/2025.7-2+rpi1^2^2~6^2~4^2~3^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https://%22%22/%22http:/www.example.com/cgi/%22https:/%22%22?a=commitdiff_plain;h=8170888927b440ca063788ccdb6594ea90087f36;p=ostree.git tests: Verify soft reboot with changed kernel state --- diff --git a/tests/kolainst/destructive/soft-reboot.sh b/tests/kolainst/destructive/soft-reboot.sh index 3ba99e2f..f5b23d48 100755 --- a/tests/kolainst/destructive/soft-reboot.sh +++ b/tests/kolainst/destructive/soft-reboot.sh @@ -140,6 +140,13 @@ case "${AUTOPKGTEST_REBOOT_MARK:-}" in '.deployments[1].booted | not' '.deployments[1].["soft-reboot-target"] | not' echo "ok soft reboot to non-staged" + # We can't soft reboot into a changed kernel state + rpm-ostree initramfs --enable + if ostree admin prepare-soft-reboot 0 2>err.txt; then + fatal "soft reboot prep with kernel change" + fi + assert_file_has_content_literal err.txt "different kernel state" + echo "ok soft reboot all tests" ;; *)